package com.warm.mini.wework.entity.invoke;

import lombok.Data;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @Description 基础回调消息类型
 * @Author warmchuang
 * @Date 2022/2/10 11:23
 */
@Data
@XmlRootElement(name = "xml")
public class BaseEventMsg {
    /** 企业微信CorpID */
    @XmlElement(name = "ToUserName")
    private String ToUserName;

    @XmlElement(name = "FromUserName")
    private String FromUserName;

    @XmlElement(name = "CreateTime")
    private String CreateTime;
    /** 消息的类型，此时固定为event */
    @XmlElement(name = "MsgType")
    private String MsgType;
    /** 事件的类型 */
    @XmlElement(name = "Event")
    private String Event;
    /** 事件的具体类型 */
    @XmlElement(name = "ChangeType")
    private String ChangeType;
}
